package org.dairy.farms.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jun 10, 2011
 * Time: 5:13:07 PM
 */
@Entity
@DiscriminatorValue(value = "LIVESTOCK_EXPENSE")
public class LivestockExpense extends Expense{
    @ManyToOne
    @JoinColumn(name = "LIVESTOCK_ID")
    private Livestock livestock;

     public Livestock getLivestock() {
        return livestock;
    }

    public void setLivestock(Livestock livestock) {
        this.livestock = livestock;
    }
}